#@adminLayout() 

#define main()
<div class="jfa-header-box" id="jfa-header-box">
	<div class="jfa-crumbs" id="jfa-crumbs">教师管理</div>
	<div class="jfa-search-box"></div>
	#include("/_view/_admin/common/_header_right.html")
</div>

### 内容区域
<div class="jfa-content-box" id="jfa-content-box">
	<div class="jfa-content" id="jfa-content">

		<div class="jfa-toolbar">
			<a class="btn btn-primary btn-sm" href="/admin/teacher/add"> <i
				class="fa fa-plus"></i> 新增教师
			</a>
		</div>

		<div class="jfa-table-box margin-top-30">
			<table class="table table-bordered table-hover margin-bottom-10">
				<thead>
					<tr>
						<th>id</th>
						<th>教师名称</th>
						<th>学院名称</th>
						<th>昵称</th>
						<th>操作</th>
					</tr>
				</thead>
				<tbody>
					#for(x : teacherPage.getList())
					<tr>
						<th scope="row">#(x.id)</th>
						<td>#(x.tname)</td>
						<td>#(x.coname)</td>
						<td>#(x.nickName)</td>
						<td class="jfa-operation-button">

							#permission("/admin/teacher/edit") <a
							href="/admin/teacher/edit?id=#(x.id)&p=#(teacherPage.pageNumber)">
								<i class="fa fa-pencil" title="修改"></i>
						</a> #end #permission("/admin/teacher/delete") <a data-delete
							data-title="#escape(x.title)"
							data-action="/admin/teacher/delete?id=#(x.id)"> <i
								class="fa fa-trash" title="删除"></i>
						</a> #end
						</td>

					</tr>
					#end
				</tbody>
			</table>

			<div>#@adminPaginate(teacherPage.pageNumber,
				teacherPage.totalPage, "/admin/teacher?p=")</div>
		</div>
	</div>
	<!-- END OF jfa-content -->
</div>
<!-- END OF jfa-content-box -->

#end
